package com.jzo2o.foundations.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;
@ApiModel(
    value = "分页数据消息体",
    description = "分页数据统一对象"
)
public class PageResult<T> {
    @ApiModelProperty(
            value = "总页数",
            required = true
    )
    private Long pages = 0L;

    @ApiModelProperty(
            value = "总条数",
            required = true
    )
    private Long total;

    @ApiModelProperty(
            value = "数据列表",
            required = true
    )
    private List<T> list;
}